package com.totem.customer.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.totem.customer.model.TMembers;
import com.totem.customer.vo.MemberVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface TMemberMapper extends BaseMapper<TMembers> {

    @Update("update t_members set v0_count=v0_count+1 where customer_id=#{customerId}")
    boolean incrV0Count(@Param("customerId") Long customerId);

    MemberVO maxLevelAndMinPath(@Param("custIdList") List<Long> branchCustIdList);
}
